package lad02.test29;

public class Test {
    public static void main(String[] args) {
        int[] number = new int[5];
        number[0] = 1;
        number[1] = 2;
        number[2] = 3;
        number[3] = 4;
        number[4] = 6;

        try {
            System.out.println(number[5]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.printf("数组越界");
        }finally {
            System.out.printf("最后都会执行finally!!");
        }
    }
}